<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../../../static/css/note.css">
    <title>笔记</title>
</head>

<body>
    <header>
        <h1>{{ request.session.user.username }} 的笔记</h1>
        <a href="/note/add">添加新笔记</a>
        <a href="/">返回主页</a>
    </header>
    <div class="table_fu">
        <table>
            <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>用户</th>
                    <th class="prominent">内容</th>
                    <th>创建时间</th>
                    <th>修改时间</th>
                    <th>删除</th>
                    <th>修改</th>
                </tr>
            </thead>
            <tbody>
                <!-- 第一行 -->
                {% for note in notes %}
                <tr>
                    <td>{{note.id}}</td>
                    <td>{{note.titles}}</td>
                    <td>{{note.user}}</td>
                    <td>{{note.content}}</td>
                    <td>{{note.create_time}}</td>
                    <td>{{note.modify_time}}</td>
                    <td><a href="/note/del/{{note.id}}">删除</a></td>
                    <td><a href="/note/mod/{{note.id}}">修改</a></td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</body>

</html>